package com.mall.server.service;

import com.mall.dubbo.api.CmsPrefrenceAreaApi;
import com.mall.model.domain.CmsPrefrenceArea;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CmsPrefrenceAreaService {

    @DubboReference
    public CmsPrefrenceAreaApi prefrenceAreaApi;


    public List<CmsPrefrenceArea> listAll() {

        List<CmsPrefrenceArea> prefrenceAreas = prefrenceAreaApi.findAll();
        return prefrenceAreas;
    }

}
